﻿<%@ Page AutoEventWireup="true" EnableEventValidation="false" Language="C#" MasterPageFile="../Template.Master" CodeBehind="KhuyenMaiMoi.aspx.cs" Inherits="FastDeal.Admin.KhuyenMaiMoi" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" BackColor="White">
        <div id="form_KhuyenMaiMoiNhat">
                    <div align="center">
            <asp:Label ID="lbHeaderDanhSachKhuyenMaiChuaDuyet" runat="server" 
                            Text="DANH SÁCH KHUYẾN MÃI CHƯA DUYỆT"
                            CssClass="header"></asp:Label>
        </div>
        <div id="formKhuyenMaiMoiNhat" align="center">
            <asp:GridView ID="gvDanhSachKhuyenMaiChuaDuyet" runat="server" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
                BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                GridLines="Horizontal"
                OnRowUpdating="gvDanhSachKhuyenMaiChuaDuyet_RowUpdating"
                OnRowCancelingEdit="gvDanhSachKhuyenMaiChuaDuyet_RowCancelingEdit" 
                OnRowEditing ="gvDanhSachKhuyenMaiChuaDuyet_RowEditing" Width="515px">
                <Columns>
                    <asp:TemplateField HeaderText="Mã">
                        <EditItemTemplate>
                            <asp:Label ID="txtMaKhuyenMai" runat="server" Text='<%# Bind("MaKhuyenMai") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("MaKhuyenMai") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tên Khuyến Mãi">
                        <EditItemTemplate>
                            <asp:Label ID="lbTenKhuyenMai" runat="server" 
                                Text='<%# Bind("TenKhuyenMai") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("TenKhuyenMai") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Doanh Nghiệp">
                        <EditItemTemplate>
                            <asp:Label ID="lbMaDoanhNghiep" runat="server" 
                                Text='<%# Bind("MaDoanhNghiep") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("MaDoanhNghiep") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tình Trạng">
                        <EditItemTemplate>
                            <asp:DropDownList ID="ddlTinhTrang" runat="server">
                                <asp:ListItem Value="0">Không Duyệt</asp:ListItem>
                                <asp:ListItem Value="1">Duyệt</asp:ListItem>
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("TinhTrang") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ButtonType="Image" CancelImageUrl="~/Icons/cancel.png" 
                        EditImageUrl="~/Icons/brush.png" ShowEditButton="True" 
                        UpdateImageUrl="~/Icons/checkbox.png" />
                </Columns>
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#242121" />

            </asp:GridView>
            <asp:Panel ID="Panel2" runat="server" Height="500px" Visible="False">
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <asp:Label ID="Label6" runat="server" CssClass="thongbao" Font-Size="35pt" 
                    ForeColor="#00CC99" Text="Trống"></asp:Label>
            </asp:Panel>
        </div>
        <div>
            <asp:HyperLink ID="linkQuayLai" runat="server" 
                NavigateUrl="~/Admin/Default.aspx">QUAY LẠI</asp:HyperLink>
        </div>
        </div>

    </asp:Panel>
</asp:Content>

